Fixed some confusions between _errorFlag and _errorMessage