Fix #2526 about volt loop context

See #2526