Fixed bug with missing $ on scope