fixed a bug about status data collecting which could cause the application crash