Fixed calculation of walked in shapes