fixed araqne/issue#367. throw error for missing stats function