Fixed small bug in JSON file copying.