corrected bug with space and saving trials when crash