Changed $ to @.
Simplified example.