I just bought a new house and when wiring up the ceiling fans noticed that the switches in ine bedroom were not right. In the other three bedrooms the fan and fan light switches are right next to each other and work independently of each other. There is also another switch for an outlet. I also noticed that there were 3 sets of wires coming into the box. In this fourth bedroom the first and third switches control the fan and fan light but the fan switch must be on in order for the fan light switch to turn on the light. The middle switch controls the outlet. Additionally, there are only two sets of wires coming into the box.
Can anyone help me sort this out and show me a diagram for the correct wiring?
Thanks for your time.

