It took me a while before I noticed what was wrong....

....the live and neutral are connected to the wrong pins.