Fixes on lookup persistence/merge

Signed-off-by: Renato Mendes <renato.mendes.1123@gmail.com>