Fix firefox

Closes #1