fixes #1223
Merge pull request #1224 from ractivejs/gh-1223

fixes #1223