fixed a bug where a shape could contain two shapes