fix ROOT-to-binary bug