fix open same file cannot recognize bug