fixed performance in firefox