fix handling of ull value in patch