fixed missed odering in api