fixed minor unset bug in models.php