fixed class variable error