Fix palette truncation in with statement