Fixed corner bounds check and divergence classes.