fix error when not edit file