Fixed a bunch of things involving the grounding of actions