Fixed a error in in user error handling