Prevent multiple semantic running for statements
Merge pull request #3209 from 9rnsr/fix11939

Prevent multiple semantic running for statements