Fixed small bug for error message