corrected broken file and moved it to temporary folder