fixed bug with useShapes boolean