fix exit error