fix undefined on unexistent addresses