Fixed a check for an already set completefunc.