clip lines bug fix