Fix in put_file