Fix topbar resize issue

Fixes #85
Why the `$timeout`?