fix the deploy order in the daemon. closes #862