fix alignment gathering