Remove last part of compound statement to prevent segfault