Workaround weird header issue in firefox. Fixes #553.