fix add batch resources error