fixed wrong callback invocation