Fixed field deletion bug