fxing bugs at positions of the shapes