fix pulsing example

fixes #4