Update classes.php

bug fix