fixed issue in stat