error handler was setting wrong property