Fixed the weird flickering of menu links.