fixed cancel button return error message