Update class.Model.php

revert recent changes