fixed typo
fixed case where layer with local plugin tab do not save plugin config