Fix bridge checking