I don't recall correctly but it happened in the state transfer test when it tries to increment it. That's why I'm setting the prevVersion is the version is null