Fix a bug in the improved bulk edit