bug when there is only a sequence rather than an element