fixed bug on compare.php