Fix statement not reachable warnings.