One more bounds check. Hopefully no more nasty bugs.