fixed ie8 popup bug (closes #181)