fixed save plugin