Fix indices for ability and power commands