Fixing erroneous return statements to continues