fix eventlock bug