fixes #1149
Merge pull request #1160 from ractivejs/gh-1149

fixes #1149