fix test crash