fix bug in ff