fix byte overflow issue in UpdateSectorInput
address PR comments