Tag: scope variable not updating