fixed the size query promises bug