Fixed classnumber variable bug