Shape delete flaw removed

After a shape is deleted, it gets removed from main array also