fixes fallthrough in switch statement
Merge pull request #1304 from pdewouters/fix-switch-statement

fixes fallthrough in switch statement