fix server error in element.js