hopefully fix crashing issue