fix last bucket alignment