Allegri has doubts for Cagliari