Fixed up invalid geometry