Fix action index

Action index is zero-based.