added workaround of open/close confliction.