fix color setting issue on exit