fix bug when block not found