Fixing duplicate callback calls at initialization.