fixing maxInfoSize calculation