fix intenr and min drag distance condition