fix es5 support