Needed to put the update into each case and add a break statement.