fixed gibbon error handling