fixes #1007
Merge pull request #1023 from ractivejs/gh-1007

fixes #1007