Fixed menu flickering.