fix deploy bugs