added provision for world bounds when building, fix #1652