Corrected issue with inheritance where, add commands where translated
into restore commands which provoked id clashes.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>