Fixed the line-box intersection bug