Fix critical bug for IE, empty doesn't work in IE