Fixes sidebar popovers.

Sometimes breaks if you go really fast, but I can't figure out why.