selection: fix undefined total in Error message