Fixed a bug that would allow empty output sequences