Handle Firefox 26 bug - Fixes #314