fixes in defineProperty