Bug confirmed and fixed.
Also, I really don't want to get rid of the -hax mode, because if you mess with pokemon data, you can break your save game, that's also why party write is disabled by default. So, it provides a safety check, only people who know what they're doing should enable these modes.