fixed ecma warnings