fixes #1035
Merge pull request #1064 from ractivejs/gh-1035

fixes #1035