Fixing variable not parsed through PHP. Thanks to Scott Venier for the patch.