Play and Pause buttons only work once

I have created custom Play and Pause buttons which I’ve included on the Master Slide so that they exist on every slide in the project. When I preview the project, the Play and Pause buttons only work when I click them one time. If I press Pause or Play a second time (on the same slide), they don’t work. What did I do wrong?