fix for cache messages order