found a bug, when updating multiple values, here is a fix