fixed file corruption error