fixes #847
Merge pull request #863 from ractivejs/gh-847

fixes #847