Fixing the endpoints stuff