added cap first deploy fix