dirty hack to fix the yarn resource manager restart