JQ: Fixed boundary problems when going back a pulse.