Click on the ghosts to get rid of them, and press B to open the ghost dictionary, and press C to close it.