fixes #1019
Merge pull request #1020 from ractivejs/gh-1019

fixes #1019