grave bug in RIFF code