fixed stupid bug that only showed up in firefox