fix mod behaviour when included into another project.