fixing ambient audio array out of bounds