Fix #2526
Merge pull request #2528 from dreamsxin/issue_2526

Fix #2526 about volt loop context