fixed results bug