fix an erc redisplay bug