Fix non-padded hex code bug