You have a function called setMaxID, but you're passing a transformed face object to it.  That just does not make sense.