Fix bounds error