Fixed return bounds error