fixed bug where compare page didnt work