Line bug fix