Better fix for OAuth dialog with bootstrap

Improves on 4995bf3e49d6bdf1d1c2d5273d4775464c84ccf3