fix results handling