Fixed bug in Panthera error handler