Fixed another upgrade error for ES.