Well the problem with hacks is only a few amount of people want to trade using it. Although trading is not that much done in rom hacks and as for that the script might be bugged and you might have to copy the real script from the original game. Although most of the time those aren't touched and just left there and became buggy from time to time for an unknown reason. :/
In short I don't think it can be fixed.