UHT/UBT incorrectly uses TEnumAsByte<> in Generated.CPP

Hi, I also have this problem, and apart from manually changing this, do you know if there is a solution for this yet? maybe some meta parameter that needs to be added to create the proper .generated file?
Thanks