Ensure term numbers are properly applied to command entries.