fix empty switch block warning