fixed typo, was missing a $ on a variable... not sure how it worked before...