fix bug in final global alignment :)