weird loop dechex behavior