error in dom element select