adopt correct default colors and avoid crash due to context menu