fix callback errors. when user set async, but didn't provide callback, we need generate a empty callback proc for it.