Fix for local variable editing / deleting if they have not been pushed to the model yet.