fixed adding index when new capt created