Fix order of statements.