fixed infinite loop with shellslash