Fixing Bugs in compare table