Fix delete all shapes functionality