Fixing a bug where navigation items would get the last three items trimmed off