Almost fixed communication between popup and background.