Fixed the ghost particles boundary condition