Fixed a pipe in checking for valid bridge device.
Fixed variable assignment.