fixed access violation when opening resource options window