Fix a bug in limit_at_end_points