Changed return to next to fix local jump error