Fix issue with hex check.