Fix crash when key not found (fix #26)