Fix exceptions in galaxy deploy