Fix bug of diff between the same environment.