fix when total size is 0