fixes elasticsearch pagination for redis models