num_ghost fix