Fix bug with expired delegation