fix ROOT_DEVICE