fix a segv with -p

not looping over wses properly since the tab change