Sequence res error fix