Fixed generated methods appearing before last field