fixed isPublic save issue