fixed bug in ff