Fix bugs in property deletion