Fix the bug of false node excluding for shared devices.