Fixed assignment duplicate sequence issue