fix a bug in isIcon