fix npe in inc stat