Fixed event looping.