Corrected switch case conditions.