minor fix to support older ES versions