bug fix for backup and migrate