Fixed a bug due to a missing break statement.