Fix error with deploy functions