fix open file bug

closed #31