Spurious function invocation?