mysterious duplicating error