fixed typo/bug in on_color