fix device headers