fixed deploy bugs