fixed a bug when clicked on a result and the details showed, now they are show correctly