repair multi-bytes