Fixes an error in the logic behind converting the hex to an option