Line rect intersect detection bug fixed