make label cache method compatible with MS 6.4 and 6.5