fixed hex bug