Bug Fix: undefined functions in callback caused crash.