fix trimming of fmri scans