Looking at issue #639 this seems to be the root cause

After fixing this part, there also needs to be made a change to the
example given or the schema of aws_elb.
Merge pull request #676 from svanharmelen/f-fix-expand-bug

core: fix expand bug