Fixed bug on pulse