fix phase selection for frames starting with odd # lines