Fixing _compare function - removing debug code