Fix for selecting/deselecting layers in the VGV