Fix palette truncation in with statement
Merge branch 'fix_with_color_palette' into v0.3