Fixed clearing of badges when refresh happened inside the app