Add checks in the matprem model for the update