Fixing exception if target values not found.