fixes #1003
Merge pull request #1021 from ractivejs/gh-1003

fixes #1003