fix the bug that callback function can not call