Fix cap deploy