fix Nano_encoder compilation bug from header