Change freeze to defineProperty