fixing bug in result view