Fix compare_size