fixed ToLine