[FIX] Fixed typo in error handling