fixed execution order for deploy task