fixed bug: hex() is not a function