Remove bad submod refs.