debug for range crash