fixed block validity bug