AddRecord bugfix