Add default case to typeIndex