fixed performance leak