fix stack overwriting bug in webi