stat logic fix