fixing results bug