fix save_bg