Fixes an issue with resolving hex codes.