fixed bad hex return value