FF and IE10 fixes