Notification app badge not removed when marking as done

I have noticed that the app badge for a notification does not get removed when I mark the notification as done. I have to force close the app and then open it again for the red badge to disappear.