Fixed a few small things on the affordance math