fixed stats compiler