But I had to put a very ugly hack elsewhere to get this working.