fixed translator's bugs  during file opening