Fixed a bug that audio is undefined

Fixed a bug that audio is undefined