fixed addEvent login bug