fixed updating for cases when the respective did not exist in data