I added this call to all operations that take a user-defined function and have a flowProcess. This might be overkill...