fix bug for ff