prevents error in firefox