fix wed way in which bounds are accessed for shapes