fix bug in cloud_stat plugin