fixed promise in .popup for cache usage