More fixes

This dumb input stack size thing is elusive.
Also, why is hyperref so bad?