stat logic fix log