Fixed some problems with ghosting.

Ghosting problems fixed.