fixes #1147
Merge pull request #1162 from ractivejs/gh-1147

fixes #1147