Actually the 'z' and 'w' coordinates had to be swapped.