add bug lifted from irc