fix for total