fix undefined bugs

- fixes 2 undefined errors during backup import.

no testes were added given the nature of the fixes.