Merge bugfix needed in both 5.19 (because it's bad) and 5.20 (because it is a prerequisite to test new features).