Fix topbar being undefined warning