pending status bug fix