fix if popup had a value of 0