Fix build class method call