unsigned <-> size_t bugfix