fixes #1541
Merge pull request #1560 from ractivejs/gh-1541

fixes #1541