fix alignment score bug