fixing a bug in the shape