I found the problem with that bug. The two coins on the right side of that level have the wrong variables attached to them. This also causes issues with trying to get all 17 stars. Thanks for letting me know!
For anyone that happens to experience this bug, if you get the one in the top left corner last, then that solves the issue. I'll fix this in the coming update.