Fixed some errors with segment AABB intersection