If event onclick isn't set properly first time, it'll be set secondary time