fixed popup for Safari