[BUGFIX] fixed exclude ghosts with empty result