fixed a bug in compare pages