fix a bug under firefox