fix doWhenAllComplete to use merge, publish