Fix bridge checking

This was somehow broken by the merge in fecc8503