fixed badges when a value of 0 is entered