fixed bug in ConverterToByte class