Fix constructor problem in stat.