Fixed bugs with open backup file