endpoint-crossing fixed