bug fix in result displaying