fix of selector checking