temp fix for out of memory crash