fix bug in webhook