How to get rid of ghosts