Fixing self errors when not inside a class in ImportShape.