Fixed up refs