Fix deployment functions