Fixed a bug in processing the wav file event (this is the second time