Fix checkbox click on vector layers