Further improvement suggested by Erwin of fix for issue 51 (Palette groups are always open)