fixed bug with positions of shapes