Fixing compile errors.
Changing some capsule information from Position to PositionGrid.