fixes #1003, part 2
Merge pull request #1022 from ractivejs/gh-1003-b

fixes #1003, part 2