Bug 9023: Fix merging of negative prefixes