fix saveload, paintGallery, and dialogs