a patch for lats commit