fixes #1057
Merge pull request #1062 from ractivejs/gh-1057

fixes #1057