Fixes minot issues with size_t being not uint.