fix onclick mode init on event