fixed counting total in rows (allocation-client)