fix broken total