fix bug caused by not reading enough alignment sites