Fixed an issue when p-refining adjacent cells.