An algebraic approach to laying a ghost to rest