fix error when trying to get values of a non-existant targetId