Fixed unsigned long comparison to size_t