Fix popup not working in Mac & Linux.