fix device name bug