Update model.php

Minor bugfix