Headphones fix for issue #321