fixes for different browsers