fix cap dependencies