fix for crashing tests