fix section compare method