fix the in wall swap world bug