Wrong order of declaration