Fixed bug that did not update the ghosts

Fixed bug that did not update the ghosts