Update logic of Build state