fixed a small bug in error message model