Fix for error: Parameter 2 to SmartyBC::assign_by_ref() expected to be a reference