Fix os event queue