Fix buggy implementation of forUpdate()