WriteCorrespondences fixed

Minor bugfix