Bugfix: Changed the custom error management.