fix plugin security saving