Fixed error with ghost