Fix potential crashing on closing coloring indicator