adapt model and fixes CRUD in production.