Fixed compiler warnings about missing cases