Maybe you got something in your layers/masks mixed up? If you connected the signal from UI it should work
Check out this tip about layers and masks