fix cap deploy bug