ytgloss: fix error when surface=0