fix color code bug