Fixed bug where deployment was marked complete at creation