Bug fix in geometry shader.