fixed a bug where statements would not be correctly deleted from a switch-case body