I have taken a look at the file you posted and I'm not sure why you are getting this error. If it is possible could you post back with the original file that is causing this error, or perhaps just the set of lines from the page around line 328, seeing the exact line that the error is mentioning should help to determine why you are getting this error. The code may be present in the pdf but without the line number for reference I'm not sure if I'm looking at the rite thing.