More work on mini ghost: fixing bugs with error calculation