hex is not working in 4.0.x