Fixed compile errors in Total row