Fix compare, accidentally nested functions