Fixed bounds error