fix according to jshint result