fixed multistage deploy