bugfix in next api call