fixed small bug in error handler; v0.4.3