restrict  movements on bad blocks/bug fix