fix in event polling