fix crash for file browsing