fixed a bug since Firefox 26