fix bug with modal inline and firefox