gui instance has no attribute 'PLOT_ENABLE' fix