fix order of keys in split