fix cap deploy lock