Fixed tinting bug