Fix media attach/detach handling