fixing element error