fix naming problems when adding modules in custom transforms