fix foreground for flyout