fixed parent is not None to parent is None, and temporary set unavailable blocks to 1000