Fixed ghost overlap check. Changed overlap checking in general.