Fixed total bug