fixed incorrect count of pending stories