fix eventlock