fixed exit error