fix selector error on windows