Fixed assert in oldValue method