fix bad app file