error handling fix