bug fix in displaying results