fixed issues with liner estimation on second half