fix bug in for k,v tag syntax