fix phase flag processing for the case when coupling coordinates are reused