Fixed issue with the AddField method