Fix monitor crash similar to Fire IE issue 114.

Just fixed a random crash issue of Fire IE. Tested & confirmed that COBA has the same issue.

The detailed description of the problem is here: https://github.com/yxl/Fire-IE/issues/114