Fixed bug in backup method