Fixed bugs when moving multiple shapes (by holding Shift).