fixed navabar loading with wrong style at times