fixed bug in update block in template.  referenced remove variable instead of update variable.