fixing backup bug