fix index key lengths for origin columns