switch flag has been removed from SwitchPoll() in order to fix the bug