fixing cap deployment