fixed addfield plugin