error fix for sandwich total not working