avoid garbage when resetting ghosts