Your problem is the thing in the module is not working correctly. You fix this by fixing the thing in the module, such that it will work correctly. After that your problem will be solved.
Hope this generic message with generic instructions will help you fix your generic problem described in a non-detailed generic fashion.
Anyways, make module with FSM. Instantiate the 3 modules inside this same module. Connect control signals from FSM to modules. Need more detail? Provide more detail.