fix some bugs of  ifly