fix integer pulse bug