fixed issues in line capacity two phase