fixed insert_color bug