Fix of size overcounting bug