fix the import class method for already imported classes