Remove references to non-existent modules