fixing problem with ghost file