Fix mixed declaration and code.