Fixed file moving problem