I wired my new ceiling fan to the picture attached. It was not working because the light stayed on all the time so I put the blue from the ceiling fan to the black and black from ceiling and receiver. That fixed the light issue but now the fan only works when the light switch is ON.

What wire to I need to change to make it so the fan works when the light switch is on and off?

[![enter image description here](https://i.stack.imgur.com/38Li8.png)](https://i.stack.imgur.com/38Li8.png)