fixed an issue with layer checkboxes being disabled