added more checks for buggy wav files