Ensure order is refreshed before returning json