Fix declaration order

[ci skip]