Added boundary check error