fix when loadElements is called
Merge pull request #1 from jstarry/loadElements_fix

fix when loadElements is called