fix for crashing build