Fixed 'unreachable code' warnings.