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