fix gt lt problem