Fixed unreachable code