fixed hex format bug