Fixing navbar view bug