Fixed open file crash.