fix bug for selection align