Removed th console
-- Resolved the bug for undefined in compare