fix inf-block bug