fix a shuffling problem of CCDs