fixed EMR bug
check for dead stream in getPos()
Merge pull request #22 from hannesmuehleisen/master

fixed EMR bug