fix Firefox pop issue