AUI-1193 Fixing bug with sequences