stats fix for invalid custom callbacks