Don't write into ULONG_MAX