fixed bug in fmri_model