fix for saving toolbar visibility to cfg file