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