Fixes adding modules more than once