small fix for exit error