Fixed endp bug in strtoul()