bugfix: key 0 should never be restored