Hah! stupid loop gate bug pointed out by Keith Elwin