fixed bug for FCM