fix issues in firefox