Fixed issue where loc blocks are generated incorrectly
Merge pull request #336 from andreasolund/334-fix

Fixed issue where loc blocks are generated incorrectly