Fix defineProperty calls