No idea why this suddenly stopped working but this fixes it.