fixed regression in file moving