fixed ie8 modal popup closing (closes #181)