Fix order of variable declaration so fields are defined

Signed-off-by: Byron Ruth <b@devel.io>