Fixed #2431: fixed the bug of Audio manager.

Fixed the bug of Audio manager.