fix line logic on android back