Put the input modules into smart pointers
Correction of a small error when using the input module map