Fixed wrong usage of class variable.