palette & line & fix bug