fixed defineProperty errors.