fixes an issues with hidden navbar content