fix order of deployment tasks