fix device assertions