fixes #6: detect switch with more than one default