fixing pulse effect