bug fix Block sorting