fixed error message sequence