fix bug in run string event