fixed JSLint warning