Fixed a bug which caused circular reference in esl