Corrected invalid type of class method calls.