bugfix for ESError problem