statsclient: fix retrieving stats type