Fix for removeField method

I noticed that this doesn't work so Here is what I think the fix should be.