Fixed bound check.