resolve the pop up bug