https://github.com/PGMDev/PGM/pull/1421
PGMDev/PGM#1421