Fix a bug in the tint color caching