fix for flickering menu bug