Fixing file to chmod to the tmp one