Fixed crash bug with entering non-hex values