fix run string generation