Fix bug when reading audio file