fixed bug in delegation policy