Fix declaration order.