fixes #1047
Merge pull request #1059 from ractivejs/gh-1047

fixes #1047