[PATCH 6.1] backport: fix 6.1 backport of changes to fork