bugfix for ESError problem
Merge pull request #124 from jacqui/master

bugfix for ESError problem