Fix: bytes decode error in rest