fix bug on saving background information