fix bug with call callback function