Fix hero team construction crash; Fix mouse event handling