Fix bug and rewrite hex array expression.