Change deprecated Min and Max constraint
Remove custom error handler for deprecations