Fix: when custom plugin's attr is null (#310)