Fixed the pending not getting updated