fix nav bar style error when there is no dropdown on it.