fixed es5 error