Fix ref with alt. Closes #270