fix crash during open