fixed small bug in error display