pointer fix, int to size_t