fix messed up file