Fix issue with const cast in PulsePal class