Fix incorrect parsing of final-wave.