fix bug with shifting

the last phrase will not get shifted.