small bug with  error message