Main instance has no attribute '_clear_properties' fix