Fixed duplicated event after login.