fix crashing file