Attaching a notebook (.nb) file with all the code needed to duplicate the problem would help potential helpers.
You obviously have no definition for f1[] and f2[].