Fix case statement