fixing an oops around object.defineproperty