fixed bug with the comparison in the popup