reimplemented _create_attribute
fixed module metaclass copy