fix error handler for simplexml and values key name