Source for dollar-sign prefix causing that error?

Not certain here, but this looks suspect. See my email.