fixes bug wherein modules that have been subverted multiple times lose their original reference