Fixed: Wrong error handling.