Fixed bug when comet through IFrame not working properly