wavparse: fix which stop variable is used in assignment