Fix for toggling visibility of model layers that are initially marked visible=false