fix bug for FF