[BUG] fixed save logic error