Fix bug in firefox