fixes crashed tests