Fix for open file