fix exclude sdk logic