fixed scoping bug with palette param