Fix double end()
Merge pull request #1 from hueniverse/develop

Fix double end()