fixed error message formatting