fixes #1009
Merge pull request #1018 from ractivejs/gh-1009

fixes #1009