Fix a situation where extra perimeters prevented top shell to be fully propagated. #1387