(6)If a prisoner is undergoing two consecutive sentences, one of which is for a term of two months or more, and one of the sentence is remitted on appeal or otherwise, and the other sentence is not less than two months, any remission granted to him in respect of the sentence so remitted shall be taken into consideration for shortening his consecutive sentence.