Fix bug involving assert a function call.